package com.teamwork.module03.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.teamwork.common.entity.common.requestentity.ReqCommentBody;
import com.teamwork.common.entity.module03.Comment;
import com.teamwork.common.result.Result;

import java.util.List;

public interface CommentService extends IService<Comment> {
    Result getCommentByAid(Long id);

    Result getPage(Integer page, Integer size);


    boolean deleteByArticleId(Long artid);


    boolean deleteByUserId(Integer id);

    Result toCommentByAId(int userid,int aid, String comment);

    Result mangerPage(ReqCommentBody reqCommentBody);

    Result deleteOne(Integer cid);

    Result deleteBuch(List<Integer> ids);
}
